﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user_job.aspx.cs" Inherits="lcmyjobs.Web.users.user_job" %>

<%@ Register Src="../Controls/TopUserJobsNavigation.ascx" TagName="TopUserJobsNavigation"
    TagPrefix="uc1" %>
<%@ Register Src="../Controls/UserManageLeft.ascx" TagName="UserManageLeft" TagPrefix="uc2" %>
<%@ Register Src="../Controls/Bottom1.ascx" TagName="Bottom1" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>个人管理中心-我的简历</title>
    <link href="../css/css1.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/drag.js" type="text/javascript"></script>
    <script src="../Scripts/city_func.js" type="text/javascript"></script>
    <script src="../Scripts/city_arr.js" type="text/javascript"></script>
    <link href="../Styles/css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/industry_arr.js" type="text/javascript"></script>
    <script src="../Scripts/industry_func.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_arr.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_func.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/mybasic.js" type="text/javascript"></script>
    <style type="text/css">
        .btn
        {
        	background-image:url('../qimg/djbaocun.gif');
        	border:0;
        	width:105px;
        	height:30px;
        }
        .zyzt{ line-height:30px;}
    </style>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(function () { $(".grgl_ul li a").eq(1).addClass("activ_n"); });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="lo_wrap">
        <uc1:TopUserJobsNavigation ID="TopUserJobsNavigation1" runat="server" />
        <div class="zgzt_img">
            <img src="../qimg/zgzt_img.jpg" alt="找工作？就来聊城就业网！" width="950" height="70" />
        </div>
        <div class="syd_dhk">
            欢迎您：<asp:Label ID="lblName" runat="server"></asp:Label>，来到您的个人管理中心
        </div>
        <div class="ny_center" style="margin-top: 5px;">
            <uc2:UserManageLeft ID="UserManageLeft1" runat="server" />
            <div class="grgl_right">
                <div class="grgl_jbzl">
                    <p class="jbzl_zhuc_ls">
                        <a href="modify_basic.html">基本资料&bull;联系方式</a> | <a href="modify_edu.html">教育背景&bull;工作经验</a>
                        | <a href="user_job.html"><span>求职意向</span></a> |  <asp:HyperLink ID="HyperLink1" runat="server">简历预览</asp:HyperLink></p>
                    <div class="xinxi_zc">
					<div class="jbxx_lr_ls">求职意向</div>
					<table border="0" cellpadding="0" cellspacing="0" class="jbzl_tab_ls">
						<tr>
							<td class="red_td" width="10" valign="top">*</td>
							<td colspan="2">目前职业状态： 
									 <asp:RadioButton ID="rbt1" CssClass="zyzt" runat="server" GroupName="job" Text=" 我目前处于待业状态" ToolTip="1" Checked="True" />
								<div class="mqzt_div">
									<asp:RadioButton ID="rbt2" CssClass="zyzt" runat="server" GroupName="job" Text=" 我目前在职，正考虑换个新环境" 
                                        ToolTip="2" />
                                    <br />
                                    <asp:RadioButton ID="rbt3" CssClass="zyzt" runat="server" GroupName="job" 
                                        Text=" 我对现有工作还算满意，如有更好的工作机会，我也可以考虑" ToolTip="3" />
                                    <br />
                                    <asp:RadioButton ID="rbt4" CssClass="zyzt" runat="server" GroupName="job" Text=" 在校生&bull;应届生" 
                                        ToolTip="4" />
                                    <br />
                                    <asp:RadioButton ID="rbt5" CssClass="zyzt" runat="server" GroupName="job" Text=" 目前暂无跳槽打算" 
                                        ToolTip="5" />
								</div>
							</td>
						</tr>
						<tr>
							<td class="red_td">*</td>
							<td colspan="2"> 
                                <span style="padding-right:23px;">到岗时间：</span>
                                <asp:RadioButton ID="rbtt1" runat="server" GroupName="jtime" Text=" 随时" 
                                                            Checked="True" onclick="showtime()" />
                                                        <asp:RadioButton ID="rbtt2" runat="server" GroupName="jtime" Text=" 面谈" onclick="showtime()" />
                                                        <asp:RadioButton ID="rbtt3" runat="server" GroupName="jtime" onclick="showtime()" />
		                                                <asp:TextBox ID="txttime" runat="server" Width="140" onfocus="WdatePicker({dateFmt:'yyyy年MM月dd日',readOnly:true})" ></asp:TextBox>
                                                        <span id="mytxt">&nbsp;</span>以后随时上班</td>
						</tr>
						<tr>
							<td class="red_td">*</td>
							<td colspan="2">
                                <span style="padding-right:0px;">期望工作地区：</span>
                                <asp:TextBox ID="txtarea" Width="150px" runat="server" onclick="jobAreaSelect()" ></asp:TextBox>
	                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                    ControlToValidate="txtarea" ErrorMessage="RequiredFieldValidator" 
                                                    Display="Dynamic">*</asp:RequiredFieldValidator>
	                                            <asp:HiddenField ID="hfarea" runat="server" />
                                                <asp:HiddenField ID="hfareaid" runat="server" />
                                <span class="qys_td" style="padding-left:100px;">允许选择3个工作地区</span>
                             </td>
							
						</tr>
						<tr>
							<td class="red_td">*</td>
							<td colspan="2">
                                <span style="padding-right:0px;">期望从事行业：</span>
                                <asp:TextBox ID="txttrade"  Width="150px"  runat="server" onclick="IndustrySelect()" ></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                    ControlToValidate="txttrade" ErrorMessage="RequiredFieldValidator" 
                                                    Display="Dynamic">*</asp:RequiredFieldValidator>
                                                <asp:HiddenField ID="hftrade" runat="server" />
                                                <asp:HiddenField ID="hftradeid" runat="server" />
                                <span class="qys_td" style="padding-left:100px;">最多允许选择3个行业</span>
                            </td>
							
						</tr>

						<tr>
							<td class="red_td">*</td>
							<td colspan="2">
                                <span style="padding-right:0px;">期望从事岗位：</span>
                                <asp:TextBox ID="txtjob"  Width="150px"  runat="server" onclick="funtypeSelect()" ></asp:TextBox>
                                                <span id="jobmsg" style=" color:#ff6600;"></span>
                                                <asp:HiddenField ID="hfjob" runat="server" />
                                                <asp:HiddenField ID="hfjobid" runat="server" />
                                <span class="qys_td" style="padding-left:100px;" >最多允许选择3个岗位</span>
                            </td>

						</tr>
                        <tr>
                            <td class="red_td"></td>
                            <td colspan="2">
                             <span style="padding-right:0px; visibility:hidden;">期望从事岗位：</span>
                                <asp:TextBox ID="txtjob_other" Width="150px"  runat="server" onclick="jobother()" onfocus="jobother()" onblur="jobotherout()" style=" margin:4px 0; color:#565D63;">若无合适选项在此处填写</asp:TextBox>
                                
                            </td>
                        </tr>
						<tr>
							<td class="red_td" valign="top">*</td>
							<td colspan="2" style="line-height:24px;">
                                <span style="padding-right:23px;">期望月薪：</span>
                                <asp:TextBox ID="txtpay" runat="server" Width="51px" onblur="chmyear(this)"></asp:TextBox>&nbsp;元<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                                                    ControlToValidate="txtpay" ErrorMessage="RequiredFieldValidator" 
                                                                                    Display="Dynamic">不能为空</asp:RequiredFieldValidator>
                                                                                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                                                                    ControlToValidate="txtpay" ErrorMessage="CompareValidator" 
                                                                                Operator="DataTypeCheck" Type="Currency" Display="Dynamic">必须为数字</asp:CompareValidator> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#888; padding-left:130px;" >面谈，填写“0”</span><br/><br/>
								<asp:CheckBox ID="chbyear" runat="server" Text=" 期望年薪：" onclick="chyear()" /><asp:TextBox ID="txtyearpay" runat="server" Width="51px" Style="margin-left:10px;"></asp:TextBox>&nbsp;万元<br/>
								<p style="padding:5px 20px 5px 90px; color:#888;">您是高级人才：硕士及以上学历、工作经验3年以上，小语种外语人才，或具有年薪5万以上的工作能力等，建议您 
								同时选择年薪，您将有机会被 聊城就业网猎头服务 推荐猎头职位</p>
                                </td>
						</tr>
                          <tr>      
                            <td class="red_td"></td>
                            <td style="width:340px; width:120px\9;" >
								<asp:CheckBox ID="chbreward" runat="server" Text=" 悬赏求职：" onclick="chreward()" /> &nbsp; 
                                        <span id="myreward">悬赏金额 <asp:TextBox ID="txtreward" runat="server" Width="46px" Height="17px"></asp:TextBox>&nbsp;元</span>
                                        <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                            ControlToValidate="txtreward" Display="Dynamic" ErrorMessage="CompareValidator" 
                                            Operator="GreaterThanEqual" Type="Double" ValueToCompare="100">不能小于100元</asp:CompareValidator>&nbsp; &nbsp
                                 
                            </td>
                            <td valign="top">
                                    
                                   <div>
                                        <x:PageManager ID="PageManager1" runat="server" />
                                        <x:LinkButton ID="btnWhy" Text="为什么要悬赏求职？" runat="server"   CssClass="inline" ToolTip=" 悬赏求职：更准确、更快捷。<br/><br/>更准确----提供专业的人才选择工具，帮助您深度甄选工作。 基于人才胜任素质的评测工具辅助单位招聘。颠覆被动“等待”招聘的传统方式。<br/><br/>更快捷----发挥社会力量，动员群众，借助猎手人脉资源关系，让您的悬赏信息迅速覆盖目标群体，快捷找到合适工作。"  ToolTipAutoHide="false">
                                        </x:LinkButton>
                                    </div>
                            </td>

						</tr>		
                        <tr>
                            <td class="red_td"></td>
                            <td colspan="2">
							<p style="padding:5px 20px 5px 90px; color:#888;">您快捷找到：适合的、满意的、同您的职业愿景吻合的工作，建议您同时选择悬赏求职，您将有机会借助猎手人脉资源 
    								关系，及聊城就业网悬赏服务，被推荐适合工作</p>
                            </td>
                        </tr>
						<tr>
							<td class="red_td">*</td>
							<td colspan="2" >职业愿望：&nbsp;&nbsp;&nbsp;&nbsp;
								<asp:TextBox id="txtvision" runat="server" Width="400px" Height="150px"  TextMode="MultiLine"></asp:TextBox>
							</td>
						</tr>
					</table>
					<div class="xiayibu">
						<asp:Button ID="btn" runat="server" onclick="btnOK_Click" CssClass="btn"  onclientclick="return save()"/>
    <asp:HiddenField ID="hfyears" runat="server" />
					</div>

					</div>                                        
                </div>
            </div>
        </div>
        <uc3:Bottom1 ID="Bottom11" runat="server" />
    </div>
    <div style="DISPLAY: none" id="maskLayer"><iframe 
style="filter: alpha(opacity=50)" id="maskLayer_iframe" src="about:blank" 
frameBorder="0" scrolling="no"></iframe >
<div style="filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5" 
id="alphadiv"></div>
<div id="drag">
<h3 id="drag_h"></h3>
<div id="drag_con"></div><!-- drag_con end --></div></div><!-- maskLayer end -->
<div>
    </div>
    
    <!-- alpha div end -->
<div style="display: none" id="sublist"></div>
<script language="javascript" type="text/javascript">

    var allowedSpecialCharKeyCodes = [46, 8, 37, 39, 35, 36, 9];
    var numberKeyCodes = [44, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105];
    var commaKeyCode = [188];
    var decimalKeyCode = [190, 110];

    function numbersOnly(event) {
        var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0);

        if (legalKeyCode === false)
            event.preventDefault();
    }

    function numbersAndCommasOnly(event) {
        var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, commaKeyCode) >= 0);

        if (legalKeyCode === false)
            event.preventDefault();
    }

    function decimalsOnly(event) {
        var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, commaKeyCode) >= 0
            ||
        jQuery.inArray(event.keyCode, decimalKeyCode) >= 0);

        if (legalKeyCode === false)
            event.preventDefault();
    }

    function currenciesOnly(event) {
        var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, commaKeyCode) >= 0
            ||
        jQuery.inArray(event.keyCode, decimalKeyCode) >= 0);

        // Allow for $
        if (!legalKeyCode && event.shiftKey && event.keyCode == 52)
            legalKeyCode = true;

        if (legalKeyCode === false)
            event.preventDefault();
    }
    (function ($) {
        $.formatCurrency = {}; $.formatCurrency.regions = []; $.formatCurrency.regions[""] = { symbol: "", positiveFormat: "%s%n", negativeFormat: "(%s%n)", decimalSymbol: ".", digitGroupSymbol: "", groupDigits: true };
        $.fn.formatCurrency = function (destination, settings) {
            if (arguments.length == 1 && typeof destination !== "string") {
                settings = destination; destination = false
            } var defaults = { name: "formatCurrency", colorize: false, region: "", global: true, roundToDecimalPlace: 2, eventOnDecimalsEntered: false }; defaults = $.extend(defaults, $.formatCurrency.regions[""]);
            settings = $.extend(defaults, settings); if (settings.region.length > 0) { settings = $.extend(settings, getRegionOrCulture(settings.region)) } settings.regex = generateRegex(settings);
            return this.each(function () {
                $this = $(this); var num = "0"; num = $this[$this.is("input, select, textarea") ? "val" : "html"](); if (num.search("\\(") >= 0) {
                    num = "-" + num
                } if (num === "" || (num === "-" && settings.roundToDecimalPlace === -1)) { return } if (isNaN(num)) {
                    num = num.replace(settings.regex, ""); if (num === "" || (num === "-" && settings.roundToDecimalPlace === -1)) {
                        return
                    } if (settings.decimalSymbol != ".") { num = num.replace(settings.decimalSymbol, ".") } if (isNaN(num)) { num = "0" }
                } var numParts = String(num).split("."); var isPositive = (num == Math.abs(num));
                var hasDecimals = (numParts.length > 1); var decimals = (hasDecimals ? numParts[1].toString() : "0"); var originalDecimals = decimals; num = Math.abs(numParts[0]);
                num = isNaN(num) ? 0 : num; if (settings.roundToDecimalPlace >= 0) {
                    decimals = parseFloat("1." + decimals); decimals = decimals.toFixed(settings.roundToDecimalPlace);
                    if (decimals.substring(0, 1) == "2") { num = Number(num) + 1 } decimals = decimals.substring(2)
                } num = String(num); if (settings.groupDigits) {
                    for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3);
i++) { num = num.substring(0, num.length - (4 * i + 3)) + settings.digitGroupSymbol + num.substring(num.length - (4 * i + 3)) }
                } if ((hasDecimals && settings.roundToDecimalPlace == -1) || settings.roundToDecimalPlace > 0) {
                    num += settings.decimalSymbol + decimals
                } var format = isPositive ? settings.positiveFormat : settings.negativeFormat; var money = format.replace(/%s/g, settings.symbol); money = money.replace(/%n/g, num);
                var $destination = $([]); if (!destination) { $destination = $this } else { $destination = $(destination) } $destination[$destination.is("input, select, textarea") ? "val" : "html"](money);
                if (hasDecimals && settings.eventOnDecimalsEntered && originalDecimals.length > settings.roundToDecimalPlace) {
                    $destination.trigger("decimalsEntered", originalDecimals)
                } if (settings.colorize) { $destination.css("color", isPositive ? "black" : "red") }
            })
        }; $.fn.toNumber = function (settings) {
            var defaults = $.extend({ name: "toNumber", region: "", global: true }, $.formatCurrency.regions[""]);
            settings = jQuery.extend(defaults, settings); if (settings.region.length > 0) { settings = $.extend(settings, getRegionOrCulture(settings.region)) } settings.regex = generateRegex(settings);
            return this.each(function () {
                var method = $(this).is("input, select, textarea") ? "val" : "html"; $(this)[method]($(this)[method]().replace("(", "(-").replace(settings.regex, ""))
            })
        }; $.fn.asNumber = function (settings) {
            var defaults = $.extend({ name: "asNumber", region: "", parse: true, parseType: "Float", global: true }, $.formatCurrency.regions[""]);
            settings = jQuery.extend(defaults, settings); if (settings.region.length > 0) { settings = $.extend(settings, getRegionOrCulture(settings.region)) } settings.regex = generateRegex(settings);
            settings.parseType = validateParseType(settings.parseType); var method = $(this).is("input, select, textarea") ? "val" : "html"; var num = $(this)[method]();
            num = num ? num : ""; num = num.replace("(", "(-"); num = num.replace(settings.regex, ""); if (!settings.parse) { return num } if (num.length == 0) { num = "0" } if (settings.decimalSymbol != ".") {
                num = num.replace(settings.decimalSymbol, ".")
            } return window["parse" + settings.parseType](num)
        }; function getRegionOrCulture(region) {
            var regionInfo = $.formatCurrency.regions[region]; if (regionInfo) {
                return regionInfo
            } else { if (/(\w+)-(\w+)/g.test(region)) { var culture = region.replace(/(\w+)-(\w+)/g, "$1"); return $.formatCurrency.regions[culture] } } return null
        } function validateParseType(parseType) {
            switch (parseType.toLowerCase()) {
                case "int": return "Int";
                case "float": return "Float"; default: throw "invalid parseType"
            }
        } function generateRegex(settings) {
            if (settings.symbol === "") {
                return new RegExp("[^\\d" + settings.decimalSymbol + "-]", "g")
            } else { var symbol = settings.symbol.replace("$", "\\$").replace(".", "\\."); return new RegExp(symbol + "|[^\\d" + settings.decimalSymbol + "-]", "g") }
        }
    })(jQuery);
    $().ready(function () {
        showtime();
        $("#myyear").hide();
        $("#myreward").hide();
        var i = $('#<%= hfyears.ClientID%>').val();
        if (i == 1) {
            $("#showyear").show();
        }
        else {
            $("#showyear").hide();
        }
        if ($("#txtarea").val() != "") {
            jobArea_Arr = new Array();
            jobArea_Arr = getmyareaids($("#txtarea").val());
        }
        if ($("#txtjob").val() != "") {
            fun_flag_arr = new Array();
            fun_flag_arr = getmyjobids($("#txtjob").val());
        }
        if ($("#txttrade").val() != "") {
            ind_flag_arr = new Array();
            ind_flag_arr = getmytradeids($("#txttrade").val());
        }
        if ($("#txtreward").val() != "") {
            $('#<%= chbreward.ClientID%>').attr("checked", "true");
            chreward();
        }
        if ($("#txtyearpay").val() != "") {
            $("#showyear").show();
            $('#<%= chbyear.ClientID%>').attr("checked", "true");
            chyear();
        }
        $('#<%= txtyearpay.ClientID%>').keydown(currenciesOnly).blur(function () { $(this).formatCurrency(); });
        $('#<%= txtreward.ClientID%>').keydown(currenciesOnly).blur(function () { $(this).formatCurrency(); });

    });
    function in_array(needle, haystack) {
        if (typeof needle == 'string' || typeof needle == 'number') {
            for (var i in haystack) {
                if (haystack[i] == needle) {
                    return true;
                }
            }
        }
        return false;
    }
    function showtime() {
        if ($('#<%= rbtt3.ClientID%>').attr("checked")) {
            $('#<%= txttime.ClientID%>').attr('disabled', false);
            $("#mytxt").show();
        }
        else if ($('#<%= rbtt2.ClientID%>').attr("checked")) {
            //            $('#<%= txtpay.ClientID%>').val("0").attr('readonly', "readonly");
            //            $("#mymouthpay").hide();

            $('#<%= txttime.ClientID%>').attr('disabled', true);
            $('#<%= txttime.ClientID%>').unbind();
            $('#<%= txttime.ClientID%>').val("");
            $("#mytxt").hide();
        }
        else {
            $('#<%= txtpay.ClientID%>').attr('readonly', "");
            $("#mymouthpay").show();

            $('#<%= txttime.ClientID%>').attr('disabled', true).unbind();
            $('#<%= txttime.ClientID%>').val("");
            $("#mytxt").hide();
        }
    }
    function chyear() {
        if ($('#<%= chbyear.ClientID%>').attr("checked")) { $("#myyear").show(); } else { $("#myyear").hide(); $('#<%= txtyearpay.ClientID%>').val(""); }


    }
    function chreward() {
        if ($('#<%= chbreward.ClientID%>').attr("checked")) { $("#myreward").show(); $(".why_award_text").css("margin-left", "100px"); } else { $("#myreward").hide(); $('#<%= txtreward.ClientID%>').val(""); $(".why_award_text").css("margin-left", "228px"); }


    }
    function chmyear(ty) {
        var yp = $(ty).val();
        if (!isNaN(yp)) {
            if (yp >= 2500) {
                $("#showyear").show();
            }
            else if ($('#<%= hfyears.ClientID%>').val() == 0) {
                $("#showyear").hide();
            }
        }
    }

    function save() {

        if ($("#txtjob").val() == "" && $("#txtjob_other").val() == "若无合适选项在此处填写") {
            $("#jobmsg").html("*");
            return false;
        }
        else {
            $("#jobmsg").html("");
        }
    }
    function jobother() {
        if ($("#txtjob_other").val() == "若无合适选项在此处填写") $("#txtjob_other").val("");

    }
    function jobotherout() {

        if ($("#txtjob_other").val() == "") $("#txtjob_other").val("若无合适选项在此处填写");

    }
</script>
    </form>
</body>
</html>
